﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tin18.Model
{
 
        public class DataCategory
        {
            public string Id { get; set; }
            public string CategoryName { get; set; }
            public string LinkImage { get; set; }
        }

        public class RootCategoryObject
        {
            public List<DataCategory> list { get; set; }
            public string timeCached { get; set; }
        }

        public class DataLike
        {
            public string Id { get; set; }
            public string Title { get; set; }
            public string View { get; set; } 
            public string Thumbnail { get; set; }
            public string ShortDescription { get; set; }
            public string CategoryName { get; set; }
            public string Date { get; set; }
        }

        public class DataNews
        {
            public string Id { get; set; }
            public string Title { get; set; }
            public int View { get; set; }
            public int Like { get; set; }
            public int Number { get; set; }
            public string Thumbnail { get; set; }
            public string ShortDescription { get; set; }
            public string CategoryId { get; set; }
            public string CategoryName { get; set; }
            public string Date { get; set; }
        }

        public class RootNewsObject
        {
            public List<DataNews> list { get; set; }
            public string timeCached { get; set; }
        }


        public class DataType
        {
            public string Id { get; set; }
            public string CategoryName { get; set; }
            public string Description { get; set; }
        }

        public class RootTypeObject
        {
            public List<DataType> list { get; set; }
        }


        public class NewsDetailObject
        {
            public string NewsId { get; set; }
            public string Content { get; set; }
            public string Date { get; set; }
        }



        public class DataComment
        {
            public string Id { get; set; }
            public int Like { get; set; }
            public string Subject { get; set; }
            public bool CanShow { get; set; }
            public string UserComment { get; set; }
            public string Content { get; set; }
            public string NewsId { get; set; }
            public object NewsTitle { get; set; }
            public string Date { get; set; }
            public string ParentCommentId { get; set; }
            public List<object> SubComments { get; set; }
        }

        public class RootCommentObject
        {
            public List<DataComment> list { get; set; }
        }


        public class RootUserObject
        {
            public string Id { get; set; }
            public string UdId { get; set; }
            public string Email { get; set; }
            public bool IsNew { get; set; }
            public object Backup { get; set; }
            public string Password { get; set; }
            public string VersionApp { get; set; }
            public string VersionOS { get; set; }
            public bool IsExpire { get; set; }
            public int ExpireView { get; set; }
            public int TypeId { get; set; }
            public string TypeName { get; set; }
            public string ExpireDate { get; set; }
        }
 
}
